<%-- 
    Document   : passwordchange
    Created on : 04-12-2009, 18:51:07
    Author     : leaf
--%>

<%@ page contentType="text/html; charset=utf-8"%>
<script language="JavaScript">
    function check(){
        if(document.form1.oldPassword.value==""){
            alert(" Nhập mật khẩu cũ !");
            document.form1.oldPassword.focus();
            return false;
        }
        if(document.form1.newPassword.value==""){
            alert(" Nhập mật khẩu mới !");
            document.form1.newPassword.focus();
            return false;
        }


    }
</script>
<p class="title">ĐỔI MẬT KHẨU </p>
<p class="message">${message}</p>
<form action="UserAction" method="post" name="form1" >
    <table>
        <tr>
            <td>Mật khẩu cũ: </td>
            <td>
                <input size="40%" type="password" name="oldPassword"/>
            </td>
        </tr>
        <tr>
            <td>Mật khẩu mới: </td>
            <td>
                <input size="40%" type="password" name="newPassword"/>
            </td>
        </tr>


        <tr>
            <td colspan="2" align="right">
                <input type="submit" value="Change" name="act" onclick="return check();">
                <input type="reset" value="Reset">
                <input type="submit" value="Cancel" name="act">
            </td>
        </tr>

    </table>
</form>